// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class GenrecordAppealLog : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<GenrecordAppealLog, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public int? GenRecordId { get; set; }
        public int? EventType { get; set; }
        public string EventTypeRemark { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public string BaseStationName { get; set; }
        public string DTUID { get; set; }
        public string GensetNum { get; set; }
        public string GenReason { get; set; }
        public DateTime? CreateTime { get; set; }
        public DateTime? GenStart { get; set; }
        public DateTime? GenStop { get; set; }
        public decimal? KWpower { get; set; }
        public int? PrjCode { get; set; }
        public string PrjName { get; set; }
        public double? GpsLat { get; set; }
        public double? GpsLgt { get; set; }
        public string Operator { get; set; }
        public string AuditPerson { get; set; }
        public string AuditContent { get; set; }
        public DateTime? AuditTime { get; set; }
        public string GenImg1 { get; set; }
        public string GenImg2 { get; set; }
        public string GenImg3 { get; set; }
    
        public void Configure(EntityTypeBuilder<GenrecordAppealLog> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasNoKey();

                entityBuilder.Property(e => e.AreaCode).HasMaxLength(1000);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(1000);

                entityBuilder.Property(e => e.AuditContent).HasMaxLength(1000);

                entityBuilder.Property(e => e.AuditPerson).HasMaxLength(1000);

                entityBuilder.Property(e => e.AuditTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.BaseStationName).HasMaxLength(1000);

                entityBuilder.Property(e => e.CreateTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.DTUID)
                    .IsRequired()
                    .HasMaxLength(1000);

                entityBuilder.Property(e => e.EventTypeRemark).HasMaxLength(1000);

                entityBuilder.Property(e => e.GenReason).HasMaxLength(1000);

                entityBuilder.Property(e => e.GenStart).HasColumnType("datetime");

                entityBuilder.Property(e => e.GenStop).HasColumnType("datetime");

                entityBuilder.Property(e => e.GensetNum).HasMaxLength(1000);

                entityBuilder.Property(e => e.Id).ValueGeneratedOnAdd();

                entityBuilder.Property(e => e.KWpower).HasColumnType("decimal(18, 3)");

                entityBuilder.Property(e => e.Operator).HasMaxLength(1000);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(1000);
        }

    }
}

